package com.liuugoqing.creator.factory.before;

import org.junit.Test;

/**
 * 测试
 * @Author : liugq
 * @Date : 2022/6/30 11:18
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public class TestBefore {
    @Test
    public void test() throws Exception{
        CoffeeStore store = new CoffeeStore();
        Coffee coffee = store.orderCoffee("american");
        System.out.println(coffee.getName());
    }
}
